<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editer Group', true), array('action' => 'edit', $group['Group']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Supprimer Groupe', true), array('action' => 'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Lister Groupes', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nouveau Groupe', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Lister Admins', true), array('controller' => 'admins', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Ajouter Admin', true), array('controller' => 'admins', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="groups view">
<h2><?php  __('Group');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nom'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>

<div class="related">
	<h3><?php __('Related Admins');?></h3>
	<?php if (!empty($group['Admin'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<!--<th><?php __('Id'); ?></th>
		<th><?php __('Group Id'); ?></th>-->
		<th><?php __('User'); ?></th>
		<!--<th><?php __('Mot-passe'); ?></th>-->
		<th><?php __('Nom'); ?></th>
		<th><?php __('Prenom'); ?></th>
		<!--<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>-->
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['Admin'] as $admin):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<!--<td><?php //echo $admin['id'];?></td>
			<td><?php //echo $admin['group_id'];?></td>-->
			<td><?php echo $admin['user'];?></td>
			<!--<td><?php //echo $admin['mot-passe'];?></td>-->
			<td><?php echo $admin['nom'];?></td>
			<td><?php echo $admin['prenom'];?></td>
			<!--<td><?php //echo $admin['created'];?></td>
			<td><?php //echo $admin['modified'];?></td>-->
			<td class="actions">
				<?php echo $this->Html->link(__('Voir', true), array('controller' => 'admins', 'action' => 'view', $admin['id'])); ?>
				<?php echo $this->Html->link(__('Editer', true), array('controller' => 'admins', 'action' => 'edit', $admin['id'])); ?>
				<?php echo $this->Html->link(__('Supprimer', true), array('controller' => 'admins', 'action' => 'delete', $admin['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $admin['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Admin', true), array('controller' => 'admins', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
